<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#create_order_configuration" aria-controls="create_order_configuration" role="tab" data-toggle="tab">下单配置</a></li>
            <li role="presentation"><a href="#dispatch_configuration" aria-controls="dispatch_configuration" role="tab" data-toggle="tab">派单配置</a></li>
        </ul>
    </div>
    <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <div class="tab-content">
            <!--下单配置-->
            <div role="tabpanel" class="tab-pane active" id="create_order_configuration">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">用户查找司机所在半径(公里数):</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-user_kilometer" data-rule="required" class="form-control" name="row[user_kilometer]" type="text" placeholder="公里数" value="{$row.user_kilometer|htmlentities}">
                            <span class="help-block" style="color: #f11414">提示：根据用户所在半径(公里数)，显示附近司机师傅</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">司机到达指定地点距离(米):</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-arrive_kilometer" data-rule="required" class="form-control" name="row[arrive_kilometer]" type="text" placeholder="米" value="{$row.arrive_kilometer|htmlentities}">
                            <span class="help-block" style="color: #f11414">提示：司机到达指定地点小于当前设置的值，司机点击我已到达，才能成功</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">距离目的地范围校验:</label>
                        <div class="col-xs-12 col-sm-8">

                            <div class="radio">
                                {foreach name="statusList" item="vo"}
                                <label for="row[to_destination_range_switch]-{$key|htmlentities}"><input id="row[to_destination_range_switch]-{$key|htmlentities}" name="row[to_destination_range_switch]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.to_destination_range_switch"}checked{/in} /> {$vo|htmlentities}</label>
                                {/foreach}
                            </div>

                        </div>
                    </div>
                    <div class="form-group to_destination_range_metre {if $row.to_destination_range_switch == 'hidden'}hide{/if}">
                        <label class="control-label col-xs-12 col-sm-2">距离目的地范围(米):</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-to_destination_range_metre" class="form-control" step="0.1" name="row[to_destination_range_metre]" type="number" placeholder="单位为米" value="{$row.to_destination_range_metre|htmlentities}">
                            <span class="help-block" style="color: #f11414">提示：距离目的地范围XXX米,司机才可以确认到达目的地</span>
                        </div>
                    </div>
                </div>
            </div>
            <!--派单配置-->
            <div role="tabpanel" class="tab-pane" id="dispatch_configuration">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">师傅所在半径(公里数):</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-driver_kilometer" data-rule="required" class="form-control" name="row[driver_kilometer]" type="text" placeholder="公里数" value="{$row.driver_kilometer|htmlentities}">
                            <span class="help-block" style="color: #f11414">提示：根据所在位置周围半径公里进行配单</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">代驾师傅可取消次数:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-driver_cancel_count" data-rule="required" class="form-control" name="row[driver_cancel_count]" type="number" value="{$row.driver_cancel_count|htmlentities}">
                            <span class="help-block" style="color: #f11414">提示：达到取消次数后，当日不可接单，次日恢复</span>
                        </div>
                    </div>
                </div>
            </div>


            <div class="form-group layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </div>
    </form>
</div>